home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Meeting Pearls 4
/
Meeting Pearls Vol. IV (1996)(GTI - Schatztruhe)[!].iso
/
Contrib
/
FindPearls
/
Rexx
/
openfilerwindow.rexx
< prev
next >
Wrap
OS/2 REXX Batch file
|
1996-10-20
|
760b
|
45 lines
/* Opens a window in Filer */
parse arg pathname
ports=show('P','FilerRexx')
if ports>0 then do
ports=show('P')
found=index(ports,'FilerRexx')
end
else do
found=0
end
if found=0 then do
if exists("Meeting_Pearls_IV:") then do
address command "Run :Pearls/util/dir/Filer/Filer"
do i=1 until found~=0 | i=15
ports=show('P')
found=index(ports,'FilerRexx')
if found=0 then
address command "Wait 1 SECS"
end
end
end
if found>0 then do
address 'FilerRexx'
options results
READSOURCEDIR pathname
handle=result
/*lister set handle icons*/
FILERTOFRONT
exit 0
end
else do
if exists("C/MetaTool") then do
address command "C/MetaTool Rexx/NoFiler TEXT"
end
else do
address command "MetaTool Rexx/NoFiler TEXT"
end
exit 10
end